package com.jnmd.video.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jnmd.video.mapper.CourseMapper;
import com.jnmd.video.pojo.Course;
import com.jnmd.video.pojo.CourseQueryVo;
import com.jnmd.video.service.CourseService;

@Service
public class CourseServiceImpl implements CourseService {

	@Autowired
	private  CourseMapper courseMapper;

	@Override
	public List<Course> findCourseAll() {
       
		return courseMapper.findCourseAll();
	}

	@Override
	public Course selectCourseById(int id) {
		
		return courseMapper.selectCourseById(id);
	}

	@Override
	public void saveCourse(Course course) {
		courseMapper.saveCourse(course);
		
	}

	@Override
	public void deleteCourseById(int id) {
		courseMapper.deleteCourseById(id);
		
	}

	@Override
	public List<Course> findCourseSome(CourseQueryVo courseQueryVo) {
		// TODO Auto-generated method stub
		return courseMapper.findCourseSome(courseQueryVo);
	}

	@Override
	public void updateCourse(Course course) {
		courseMapper.updateCourse(course);
		
	}

}
